package cn.itcast.service;

import cn.itcast.pojo.OrderSetting;
import cn.itcast.pojo.OrderSettings;


import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderSettingService
 * @Description TODO
 * @Author lc
 * @Date 2021/11/15 18:15
 * @Version 1.0
 */
public interface OrderSettingService {
    /**
     * 查询当前年月的预约数据
     *
     * @param currentYearAndMonth
     * @return
     */
    List<OrderSettings> getOrderSettingsByMonth(String currentYearAndMonth);


    /**
     * 新增或者修改可预约人数,修改人数时不可少于已预约人数
     *
     * @param orderSetting
     */
    Boolean updateOrderSettingNumber(OrderSetting orderSetting);

    /**
     * excel批量导入数据
     *
     * @param dateValue
     * @param numValue
     */
    void uploadFile(String dateValue, Integer numValue);







    //========================================================
        //移动端

    //查询OrderSetting对象
    OrderSetting findByDate(Date date);

    Boolean update(OrderSetting orderSetting);
}
